package com.mtsmda.chapter7.equalsAndHashCode;

public class ObjectOvverideToStringEqualsHashCode {

	private String name;

	public ObjectOvverideToStringEqualsHashCode() {

	}

	public ObjectOvverideToStringEqualsHashCode(String name) {
		this.name = name;
	}

	public String toString() {
		return "Class name is - \"ObjectOvverideToStringEqualsHashCode\" name is - "
				+ name;
	}

	public static void main(String[] args) {
		ObjectOvverideToStringEqualsHashCode code = new ObjectOvverideToStringEqualsHashCode();
		System.out.println(code.toString().hashCode());
	}

}